package com.mystudyspring.studySpringBoot.domain;

import org.springframework.beans.factory.annotation.Value;
import org.springframework.stereotype.Component;

/**
 * 属性是否已经根据配置文件加载
 *
 * @author lix
 * @create 2018-03-22 10:11
 */
@Component
public class BlogProperties {
    @Value("${com.mystudyspring.blog.name}")
    private String name;
    @Value("${com.mystudyspring.blog.title}")
    private String title;

    private String desc;
    public String getName() {
        return name;
    }

    public String getTitle() {
        return title;
    }
}
